package com.company.module.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Group entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "group", catalog = "test")
public class Group implements java.io.Serializable {

	// Fields

	private Integer groupid;
	private String groupname;

	// Constructors

	/** default constructor */
	public Group() {
	}

	/** minimal constructor */
	public Group(Integer groupid) {
		this.groupid = groupid;
	}

	/** full constructor */
	public Group(Integer groupid, String groupname) {
		this.groupid = groupid;
		this.groupname = groupname;
	}

	// Property accessors
	@Id
	@Column(name = "groupid", unique = true, nullable = false)
	public Integer getGroupid() {
		return this.groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	@Column(name = "groupname", length = 35)
	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

}